const ArticleCateModel = require("./model/articlecate");

const UserModel = require("./model/user");

const ArticleModel = require("./model/article");

// 分类增加
/* const cate = new ArticleCateModel({
    title: "国内新闻",
    description: "国内新闻"
});

cate.save(); */

// 增加用户
/* const user = new UserModel({
    username: "lisi",
    password: "123456",
    name: "李四",
    age: 20,
    sex: "男",
    tel: 12345678912,
})

user.save(); */

const article = new ArticleModel();
article.title = "习近平访问美国";
article.cid = "688c6738c7d68018c0d9ff5c";
article.author_name = "李四";
article.author_id = "688c6ea23ea0be451cc121a8";
article.description = "此处是描述....";
article.content = "此处是内容....";

article.save();
